package com.wxy.test2.combinationpattern;

public class ImageFile extends AbstractFile{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ImageFile(String name) {
        this.name = name;
    }

    public ImageFile() {}

    @Override
    public void add(AbstractFile file) {}

    @Override
    public void remove(AbstractFile file) {}

    @Override
    public AbstractFile getChild(int i) {
        return null;
    }

    @Override
    public void killVirus() {
        System.out.println("---------对[image]" + this.name + "杀毒完毕---------");
    }
}
